package com.design.decoratorPattern;

public class RobotDecorator implements Robot{
    private final Robot robot;

    public RobotDecorator(Robot robot){
        this.robot = robot;
    }
    @Override
    public void doSomething() {
        robot.doSomething();
    }

    public void doMoreThings(){
        System.out.println("rap\n打篮球");
    }
}
